public boolean canAssignService(String realmName,String idType){
  boolean can=false;
  try {
    AMIdentityRepository repo=new AMIdentityRepository(adminSSOToken,realmName);
    Set allowedOperations=repo.getAllowedIdOperations(IdUtils.getType(idType));
    can=allowedOperations.contains(IdOperation.SERVICE);
  }
 catch (  IdRepoException e) {
    debug.warning("EntitiesModelImpl.canAssignService",e);
  }
catch (  SSOException e) {
    debug.warning("EntitiesModelImpl.canAssignService",e);
  }
  return can;
}

public boolean canAssignService ( String realmName , String idType ) { boolean can = false ; try { AMIdentityRepository repo = new AMIdentityRepository ( adminSSOToken , realmName ) ; Set allowedOperations = repo . getAllowedIdOperations ( IdUtils . getType ( idType ) ) ; can = allowedOperations . contains ( IdOperation . SERVICE ) ; } catch ( IdRepoException e ) { debug . warning ( "EntitiesModelImpl.canAssignService" , e ) ; } catch ( SSOException e ) { debug . warning ( "EntitiesModelImpl.canAssignService" , e ) ; } return can ; }
returns true if services can be assigned to this entity type .
