|
Metadata |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MdSecurityUtil
Utility class used for retrieving the necessary security permissions for a metadata object.
An instance of this class should be obtained by calling MdFactory.getSecurityUtil()
.
Method Summary | |
---|---|
void |
dispose()
Destroy all memory allocated for object and release from RMI |
int |
getAssociationCountForObject(CMetadata meta,
java.lang.String associationName)
Returns the size of a specific association for an object. |
int |
getCountNoSecurity(java.lang.String reposID,
java.lang.String xmlSelect,
java.lang.String metadataType)
Performs a search on the server bypassing all security permissions. |
int |
getCountNoSecurity(java.lang.String reposID,
java.lang.String xmlSelect,
java.lang.String metadataType,
int flags)
Performs a search on the server bypassing all security permissions. |
boolean |
isFolderWriteAuthorized(java.lang.String folderID)
Returns true if the user has the necessary WriteMemberMetadata permissions for a particular folder. |
boolean |
isReadAuthorized(java.lang.String metadataType,
java.lang.String metadataID)
Returns true if the user has the necessary ReadMetadata permissions for a particular object. |
boolean |
isWriteAuthorized(java.lang.String metadataType,
java.lang.String metadataID)
Returns true if the user has the necessary WriteMetadata permissions for a particular object. |
Method Detail |
---|
boolean isReadAuthorized(java.lang.String metadataType, java.lang.String metadataID) throws MdException, java.rmi.RemoteException
metadataType
- the metadata type of the objectmetadataID
- the object's metadata id
MdException
java.rmi.RemoteException
boolean isWriteAuthorized(java.lang.String metadataType, java.lang.String metadataID) throws MdException, java.rmi.RemoteException
metadataType
- the metadata type of the objectmetadataID
- the object's metadata id
MdException
java.rmi.RemoteException
boolean isFolderWriteAuthorized(java.lang.String folderID) throws MdException, java.rmi.RemoteException
folderID
- the metadata id of the parent folder
MdException
java.rmi.RemoteException
int getAssociationCountForObject(CMetadata meta, java.lang.String associationName) throws MdException, java.rmi.RemoteException
For example, this method can be used to get the number of columns associated to a table or to see if a public object is already contained within a folder.
isec
- the ISecurity connectionmeta
- the metadata object to search forassociationName
- the name of the association to search
MdException
java.rmi.RemoteException
int getCountNoSecurity(java.lang.String reposID, java.lang.String xmlSelect, java.lang.String metadataType) throws MdException, java.rmi.RemoteException
reposID
- the repository id to search withinxmlSelect
- an xml select statement used to search for the objectmetadataType
- the metadata type of the object
MdException
java.rmi.RemoteException
int getCountNoSecurity(java.lang.String reposID, java.lang.String xmlSelect, java.lang.String metadataType, int flags) throws MdException, java.rmi.RemoteException
This method can be used when needing to search across multiple repositories. In this case, additional
flags can be passed in via the flags
parameter.
reposID
- the repository id to search withinxmlSelect
- an xml select statement used to search for the objectmetadataType
- the metadata type of the objectflags
- allows additional flags to be passed in. Typically this can be used to allow users
to search across multiple repositories using the MdOMIUtil.OMI_DEPENDENCY_USES
and
MdOMIUtil.OMI_DEPENDENCY_USEDBY
flags. If no additional flags are needed, a value
of 0 can be passed in.
MdException
java.rmi.RemoteException
void dispose() throws java.rmi.RemoteException
java.rmi.RemoteException
|
Metadata |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |