Package org.codelibs.fess.helper
Class SambaHelper
java.lang.Object
org.codelibs.fess.helper.SambaHelper
Helper class for Samba-related operations.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.codelibs.fess.mylasta.direction.FessConfigThe Fess configuration.static final intSID type for an alias.static final intSID type for a deleted account.static final intSID type for a domain group.static final intSID type for a domain.static final intSID type for an invalid SID.static final intSID type for an unknown SID.static final intSID type for a non-use SID.static final intSID type for a user.static final intSID type for a well-known group. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringcreateSearchRole(int type, String name) Creates a search role.getAccountId(org.codelibs.jcifs.smb.SID sid) Gets the account ID from a SID.getAccountId(org.codelibs.jcifs.smb1.SID sid) Gets the account ID from a SID.voidinit()Initializes the SambaHelper.
-
Field Details
-
SID_TYPE_ALIAS
public static final int SID_TYPE_ALIASSID type for an alias.- See Also:
-
SID_TYPE_DELETED
public static final int SID_TYPE_DELETEDSID type for a deleted account.- See Also:
-
SID_TYPE_DOM_GRP
public static final int SID_TYPE_DOM_GRPSID type for a domain group.- See Also:
-
SID_TYPE_DOMAIN
public static final int SID_TYPE_DOMAINSID type for a domain.- See Also:
-
SID_TYPE_INVALID
public static final int SID_TYPE_INVALIDSID type for an invalid SID.- See Also:
-
SID_TYPE_UNKNOWN
public static final int SID_TYPE_UNKNOWNSID type for an unknown SID.- See Also:
-
SID_TYPE_USE_NONE
public static final int SID_TYPE_USE_NONESID type for a non-use SID.- See Also:
-
SID_TYPE_USER
public static final int SID_TYPE_USERSID type for a user.- See Also:
-
SID_TYPE_WKN_GRP
public static final int SID_TYPE_WKN_GRPSID type for a well-known group.- See Also:
-
fessConfig
protected org.codelibs.fess.mylasta.direction.FessConfig fessConfigThe Fess configuration.
-
-
Constructor Details
-
SambaHelper
public SambaHelper()Constructor.
-
-
Method Details
-
init
@PostConstruct public void init()Initializes the SambaHelper. -
getAccountId
Gets the account ID from a SID.- Parameters:
sid- The SID.- Returns:
- The account ID.
-
getAccountId
Gets the account ID from a SID.- Parameters:
sid- The SID.- Returns:
- The account ID.
-
createSearchRole
Creates a search role.- Parameters:
type- The SID type.name- The account name.- Returns:
- The search role.
-