|
SageTV Platform V7.1 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectsage.api.Security
public class Security
Calls for dealing with permission based access to various capabilities in the SageTV platform and UI.
| Constructor Summary | |
|---|---|
Security()
|
|
| Method Summary | |
|---|---|
boolean |
AddSecurityProfile(java.lang.String Profile)
Adds a new security profile with the specified name. |
java.lang.String |
GetActiveSecurityProfile()
Returns the name of the current security profile for the UI client making the API call. |
java.lang.String |
GetDefaultSecurityProfile()
Returns the name of the default security profile to use when a new client connects that does not have an associated security profile. |
java.lang.String[] |
GetPredefinedPermissions()
Returns a list of all the predefined permission names. |
java.lang.String[] |
GetSecurityProfiles()
Returns the names of the different security profiles. |
boolean |
HasPermission(java.lang.String Permission)
Returns true if the specified permission is allowed under the security profile active for the UI making this API call. |
boolean |
HasPermission(java.lang.String Permission,
java.lang.String Profile)
Returns true if the specified permission is allowed under the specified security profile. |
boolean |
RemoveSecurityProfile(java.lang.String Profile)
Removes the security profile with the specified name. |
boolean |
SetActiveSecurityProfile(java.lang.String Profile)
Sets the name of the current security profile for the UI client making the API call. |
boolean |
SetDefaultSecurityProfile(java.lang.String Profile)
Sets the name of the default security profile to use when a new client connects that does not have an associated security profile. |
void |
SetPermission(java.lang.String Permission,
java.lang.String Profile,
boolean Allowed)
Sets whether or not a permission is allowed under a specific security profile. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Security()
| Method Detail |
|---|
public java.lang.String GetActiveSecurityProfile()
public java.lang.String GetDefaultSecurityProfile()
public boolean SetActiveSecurityProfile(java.lang.String Profile)
Profile - the name of the security profile
public boolean SetDefaultSecurityProfile(java.lang.String Profile)
Profile - the name of the default security profile to use when a new client connects that does not have an associated security profile
public java.lang.String[] GetSecurityProfiles()
public boolean AddSecurityProfile(java.lang.String Profile)
Profile - the name for the new security profile
public boolean RemoveSecurityProfile(java.lang.String Profile)
Profile - the name for the security profile to remove
public java.lang.String[] GetPredefinedPermissions()
public void SetPermission(java.lang.String Permission,
java.lang.String Profile,
boolean Allowed)
Permission - the name of the permission to setProfile - the name of the security profile this permission applies toAllowed - true if the permission should be granted, false if it should be denied
public boolean HasPermission(java.lang.String Permission,
java.lang.String Profile)
Permission - the name of the permissionProfile - the of the security profile
public boolean HasPermission(java.lang.String Permission)
Permission - the name of the permission
|
SageTV Platform V7.1 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||